package com.atguigu.gmall.product.annotaion;

import com.atguigu.gmall.serviceutil.Interceptor.AppMybatisPlusConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Import({AppMybatisPlusConfig.class})  //开启mybatis-plus的拦截器
@MapperScan("com.atguigu.gmall.product.mapper")
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface ProductAnnotation {
}
